package org.example.spring.controller.Admin;
import org.example.spring.domain.pojo.Result;

import org.example.spring.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController("adminUserController")
@RequestMapping("/admin/user")
public class UserController {

    @Autowired
    private UserService userService;

    @PostMapping
    public Result login(@RequestBody Map<String,String>user){
        String username=user.get("username");
        String password=user.get("password");
        return null ;
    }
}
